package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.JsonResult;
import com.example.demo.entity.EmployeeEntity;
import com.example.demo.service.EmployeeLWYService;

/**
 *  Controller
 */
@RestController
public class EmployeeLWYController {

	@Autowired
	private EmployeeLWYService employeeLWYService;

	/**
	 * すべてクエリ
	 * 
	 * @return JsonResult
	 */
	@RequestMapping(value = "/bff/getAll", method = RequestMethod.GET)
	public JsonResult getAll() {
		EmployeeEntity reslist = employeeLWYService.getAll();
		return JsonResult.success(reslist);
	}
}